package org.jeecg.modules.sggg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: 服务包表
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Data
@TableName("sg_service_package")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "sg_service_package对象", description = "服务包表")
public class SgServicePackage implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "三方主键")
    private String subId;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
    /**
     * 服务包名称
     */
    @Excel(name = "服务包名称", width = 15)
    @ApiModelProperty(value = "服务包名称")
    private String name;
    @Excel(name = "服务人群类型0一般人群，1高血压...", width = 15)
    @Dict(dicCode = "member_three_tag")
    @ApiModelProperty(value = "服务人群类型0一般人群，1高血压...")
    private String type;
    /**
     * 服务层级(0三高之家1三高基地2三高中心)
     */
    @Excel(name = "服务层级(0三高之家1三高基地2三高中心)", width = 15, dicCode = "service_level")
    @Dict(dicCode = "service_level")
    @ApiModelProperty(value = "服务层级(0三高之家1三高基地2三高中心)")
    private Integer level;
    /**
     * 服务时长(总天数)
     */
    @Excel(name = "服务时长(总天数)", width = 15)
    @ApiModelProperty(value = "服务时长(总天数)")
    private Integer dayNum;

    /**
     * 状态 0下架 1正常
     */
    @Excel(name = "状态 0下架 1正常", width = 15)
    @Dict(dicCode = "service_package_static")
    @ApiModelProperty(value = "状态 0下架 1正常")
    private Integer status;

    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private Double price;

    /**
     * 内容
     */
    @Excel(name = "内容", width = 15)
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private String tid;

    @TableField(exist = false)
    private String tName;

    @TableField(exist = false)
    private String tRemark;

    @TableField(exist = false)
    private List<SgServiceItem> itemList;
}
